
<%@ page import="eudjok.SetList" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'setList.label', default: 'SetList')}" />
        <title><g:message code="default.list.label" args="[entityName]" /></title>


	
	</head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></span>
            <span class="menuButton"><g:link class="create" action="create"><g:message code="set.new.label" args="[entityName]" /></g:link></span>
			<span class="menuButton"><g:link class="list" action="top"><g:message code="Top SetList" args="['Musica']" /></g:link></span>
			
		</div>
        <div class="body">
            
			<h1>Minhas setlists</h1>
			
            <!--
			<g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
			-->
			
            <div class="list">

                <table>
                    <thead>
                        <tr>
                        
                            <!--<g:sortableColumn property="id" title="${message(code: 'setList.id.label', default: 'Id')}" />-->
                        
                            <g:sortableColumn property="titulo" title="${message(code: 'setList.titulo.label', default: 'Titulo')}" />
							
							<th><g:message code="setList.estilo.label" default="Estilo" /></th>
							
							<th><g:message code="setList.dj.label" default="Dj" /></th>
							
							<g:sortableColumn property="dataCriacao" title="${message(code: 'setList.dataCriacao.label', default: 'Criacao')}" />
                        
                            <g:sortableColumn property="visitas" title="${message(code: 'setList.visitas.label', default: 'Visitas')}" />
                        
                        </tr>
                    </thead>
                    <tbody>
                    <g:each in="${setListInstanceList}" status="i" var="setListInstance">
                        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
                        
                            <!--<td><g:link action="show" id="${setListInstance.id}">${fieldValue(bean: setListInstance, field: "id")}</g:link></td>-->
                        
                            <td><g:link action="show" id="${setListInstance.id}"> ${fieldValue(bean: setListInstance, field: "titulo")}</g:link></td>
							
							<td>${fieldValue(bean: setListInstance, field: "estilo")}</td>
							
                            <td>${fieldValue(bean: setListInstance, field: "dj")}</td>
                        
                            <td><g:formatDate format="dd/MM/yyyy" date="${setListInstance.dataCriacao}" /></td>
                        
                            <td>${fieldValue(bean: setListInstance, field: "visitas")}</td>
                        
                        </tr>
                    </g:each>
                    </tbody>
				</table>
			</div>
			
			<div class="paginateButtons">
                <g:paginate total="${setListInstanceTotal}" />
				
            </div>
			
		</div>
    </body>
</html>
